package org.greatstorm.dao;

import java.util.List;

import org.greatstorm.dao.impl.ArticleDaoImpl;
import org.greatstorm.entity.EntityObject;

import com.google.inject.ImplementedBy;

@ImplementedBy(ArticleDaoImpl.class)
public interface ArticleDao {

	void save(EntityObject article);

	EntityObject getEntityByKey(String id);

	void deleteAll();

	List<EntityObject> getArticleByCategory(int pageNo, int pagesize, String key);

	List<EntityObject> getAllArticle(Integer pageno, int pagesize);

	void delete(String key);

	void update(EntityObject o);
}
